package kr.hkit.powerjava.mission;

import java.io.ObjectInputStream.GetField;
import java.util.Scanner;

public class Spell {
	public static void main(String[] args) {
		
		Scanner input = new Scanner(System.in);
		int t = -1;
		int age = 0;
		int time = 0;
		int price;
		
		System.out.println("자유이용권이면 1, 입장권이면 0, 시각(24), 나이 ex) 1 18 14");
		t = input.nextInt();
		time = input.nextInt();
		age = input.nextInt();
		
		price = getPrice(t, age, time);
		System.out.println(getPrice(t, age, time));
		
		if(t == 1){					//자유이용권
			if(time < 17){			//주간
				if(age < 3){		//영유아 무료입장
					price = 0;
				}
			}else{
				if(age < 13 || age > 64){ //소인
					price = 25000;
				}else{					  //대인
					price = 34000;
			}
		}
			
		}else{
			if(time > 16){			//야간
				if(age < 3){		//영유아 무료입장
					price = 0;
				}
			}else{
				if(age < 13 || age > 64){ //소인
					price = 21000;
				}else{					  //대인
					price = 29000;
			}
		}
				
	
		}
	}

	private static int getPrice(int t, int age, int time) {
		int price = 0;
		// TODO Auto-generated method stub
		return price ;
	}
}
